package jsonobj;

import com.google.gson.Gson;

public class LoginInfo implements JSonObj{
	public String user;
	public String pass;
	
	public LoginInfo(){}
	
	public LoginInfo(String user, String pass)
	{
		this.user = user;
		this.pass = pass;
	}
	
	public String toString()
	{
		return CLI_LOGIN+"|"+ new Gson().toJson(this);
	}
	
	public static LoginInfo fromJSon(String json)
	{
		return new Gson().fromJson(json,LoginInfo.class);
	}
}
